<%--
  Created by IntelliJ IDEA.
  User: JackVictor
  Date: 2023/12/19
  Time: 23:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>个人主页</title>
    <link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<script>
    //登出查错F
    function showinfo_F(){
        showNotification('登出失败!', 5000)
    }
    //提示信息
    function showNotification(message, duration) {
        var notification = document.createElement('div');
        notification.className = 'notification';
        notification.textContent = message;
        document.body.appendChild(notification);
        setTimeout(function () {
            notification.style.opacity = 0;
            setTimeout(function () {
                document.body.removeChild(notification);
            }, 3000);
        }, duration);
    }

</script>
<body>
<%
    //    登出查错
    boolean logOut_tag=false;
    Boolean tag = (Boolean) request.getAttribute("tag");
    if(tag!=null){
        logOut_tag=tag.booleanValue();
        if(logOut_tag==false){
    //登出失败%>
            <script>showinfo_F()</script>
<%
        }
    }
%>
<p style="text-align: center"><a href="logout?identity=customer">登出账号</a></p>
<p style="text-align: center"><a href="certificate.jsp">商家认证</a></p>
</body>
</html>
